package com.Domain;

import java.util.ArrayList;
import java.util.List;

public class ChannelController {
	
	private static ChannelController instance = null;
	private ArrayList<Channel> channelList = new ArrayList<Channel>();
	
	public static ChannelController getInstance() {
		
		if (instance == null) {
			instance = new ChannelController();
		}
		
		return instance;
	}

	public ArrayList<Channel> getChannelList() {
		return channelList;
	}

	public void setChannelList(ArrayList<Channel> channelList) {
		this.channelList = channelList;
	}
	
	public Channel getChannel(int position) {
		return channelList.get(position);
	}
	
	public void addChannel(Channel channel) {
		
		channelList.add(channel);
	}

}
